import random
def get_max(lst):
    x=lst[0]
    for i in range(1,len(lst)):
        if lst[i]>x:
            x=lst[i]
    return x

#生成随机列表
lst=[random.randint(1,100) for item in range(10)]
print(lst)
x=get_max(lst)
print(x)


